package com.acane.instagram.feature.friend

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.composable


const val FRIEND_ROUTE = "friend"


fun NavGraphBuilder.friendScreen(
    navController: NavHostController,
    toChat: (String) -> Unit,
    toFriend: () -> Unit,
    toLogin: () -> Unit,
    toRegister: () -> Unit,
    toMain: () -> Unit,
) {
    composable(FRIEND_ROUTE) {
        FriendRoute(
            navController = navController,
            toChat = toChat,
            toFriend = toFriend,
            toLogin = toLogin,
            toRegister = toRegister,
            toMain = toMain,
        )
    }
}

fun NavController.navigateToFriend(): Unit {
    navigate(FRIEND_ROUTE)
}